from rest_framework import serializers
from .models import MarketSummary,StockPerformanceDaily, SectorPerformanceDaily, AmountEnergy
class MarketSummarySerializer(serializers.ModelSerializer):
    """市场概览序列化器"""
    
    class Meta:
        model = MarketSummary
        fields = '__all__'

# class StockPerformanceDailySerializer(serializers.ModelSerializer):
#     class Meta:
#         model = StockPerformanceDaily
#         fields = '__all__'


# class SectorPerformanceDailySerializer(serializers.ModelSerializer):
#     class Meta:
#         model = SectorPerformanceDaily
#         fields = '__all__'


# class AmountEnergySerializer(serializers.ModelSerializer):
#     class Meta:
#         model = AmountEnergy
#         fields = '__all__'